<?php

class Application_Form_duvidas extends Zend_Form
{
    public function init()
    {
        $this->setName('duvidas');

        $email = new Zend_Form_Element_Text('email');
        $email->setLabel('Email')
               ->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');

        $assunto = new Zend_Form_Element_Text('assunto');
        $assunto->setLabel('Assunto')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty');
              
        $mensagem = new Zend_Form_Element_Textarea('mensagem');
        $mensagem->setLabel('Mensagem')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->addValidator('NotEmpty')
              ->setAttrib('maxLength',300);
        

        $submit = new Zend_Form_Element_Submit('submit');
              $submit ->setLabel('Enviar');
        $this->addElements(array($email, $assunto,$mensagem, $submit));
      }
      
}